package com.timkj.zgyd.service;

import com.timkj.zgyd.dto.CreateOrderDto;
import com.timkj.zgyd.entity.ResultVO;

import javax.servlet.http.HttpServletRequest;

/**
 * @author : liji
 * @date : 2020-09-02 01:05
 */
public interface ZgydOrderService {
    /**
     * 创建订单接口
     */
    ResultVO createOrder(CreateOrderDto dto,HttpServletRequest request);

    /**
     * 查看订单剩余时间
     */
    ResultVO searchOrder(String xtddh,String openid,HttpServletRequest request);

    /**
     * 判断当前用户是否有订单
     */
    ResultVO isOrder(String openid, HttpServletRequest request);

    /**
     * 判断当前用户是否填写个人信息
     */
    ResultVO isSubmitForm(String openid,String xtddh,HttpServletRequest request);

    /**
     * 用户手动取消订单
     */
    ResultVO deleteOrder(String openid,String xtddh,HttpServletRequest request);

    /**
     * 订单表单提交
     */
    ResultVO submitForm(String name,String idCard,String college,String grade,String lxfs,String openid,String xtddh,HttpServletRequest request);


    /**
     * 修改订单状态
     */
    ResultVO changeOrderStatus(String openid,String xtddh,String status,HttpServletRequest request);

    /**
     * 发送模板消息
     */
    ResultVO sendMessage(String openid,String xtddh,HttpServletRequest request);

    /**
     * 微信支付结果通知
     */
    String getWxInform(HttpServletRequest request);
}
